{extends file="backend/index.tpl"} {block name="page-content"} 
<div class="row-fluid">
	<div class="span12">
		<div class="block">
			<div class="head">
				<h2>Update Volume</h2>
				<ul class="buttons">
					<li><a href="#" onClick="source('form_validation'); return false;">
							<div class="icon">
								<span class="ico-info"></span>
							</div> </a>
					</li>
				</ul>
			</div>
			<form id="validate" class="updateGame" method="POST"
				action="{$base_url}admin/volume/updateVolume">
				<input type="hidden" class="validate[required]" name="id" value="{$volume.volume_id}" />
				<div class="data-fluid">
					<div class="row-form">
						<div class="span2">No</div>
						<div class="span10">
							<input type="text" class="validate[required]" name="no" value="{$volume.volume_no}" /> <span
								class="bottom">Required</span>
						</div>
					</div>	
					<div class="row-form">
						<div class="span2">Name</div>
						<div class="span10">
							<input type="text" class="validate[required]" name="name" value="{$volume.volume_name}" /> <span
								class="bottom">Required</span>
						</div>
					</div>	
					<div class="row-form">
						<div class="span2">Book Name</div>
						<div class="span10">
							<select name="book_id" class="select" style="width: 100%;">
								{foreach from=$listBook item=book} 
								<option value="{$book.book_id}" {if $volume.book_id eq $book.book_id}Selected{/if}>{$book.book_name}</option>
								{/foreach}
							</select>
						</div>
					</div>
					<div class="toolbar bottom tar">
						<div class="btn-group">
							<button class="btn btn-info" type="button"
								onClick="$('#validate').validationEngine('hide');">Hide prompts</button>
							<button class="btn" type="submit" name="submit" id="updateBook">Update Volume</button>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>


{/block}

